/**
 * 商品定价相关接口
 */
import fetch from '@/common/utils/axios-config'
import config from '@common/utils/axios-config/config.js'
let { yudaoUrl } = config

/**
 * 查询商品基础数据
 */
export const getGdsMrAnalyse = (data) => {
  return fetch({ url: `${yudaoUrl}/gdsMr/analyse/getGdsMrAnalyse`, method: 'post', data })
}
/**
 * 查询商品品类数据
 */
export const getGdsMrCategoryAnalyse = (data) => {
  return fetch({ url: `${yudaoUrl}/gdsMr/analyse/getGdsMrCategoryAnalyse`, method: 'post', data })
}
/**
 * 获取价格指数趋势
 */
export const getGdsMrPriceIndexForMonth = (params) => {
  return fetch({ url: `${yudaoUrl}/gdsMr/analyse/getGdsMrPriceIndexForMonth`, method: 'get', params })
}
/**
 * 获取市调信息列表
 */
export const getGdsMrInfoList = (data) => {
  return fetch({ url: `${yudaoUrl}/gdsMr/analyse/getGdsMrInfoList`, method: 'post', data })
}
/**
 * 获取市调详情
 */
export const getDetail = (params) => {
  return fetch({ url: `${yudaoUrl}/gdsMr/getDetail`, method: 'get', params })
}
/**
 * 获取市调详情
 */
export const getInfo = (params) => {
  return fetch({ url: `${yudaoUrl}/cjyGds/getInfo`, method: 'get', params })
}
